define(['angular'], function (angular) {
	'use strict';

  /* Services */

  // Demonstrate how to register services
  // In this case it is a simple value service.
	angular.module('myApp.services', [])
		.value('version', '0.1')
        .service('restService', ['$http', function($http){
            this.get = function(url, data, callback){
                $http.get(url, {
                    params: data
                }).success(callback);
            };
        }]);
});
